package BookParts;

import java.util.Arrays;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhunusbekova.arailym
 * Date: 22.08.13
 * Time: 13:42
 * To change this template use File | Settings | File Templates.
 */
public class Punctuation extends SentencePart{


    private static final String[] punctuationArray = { ".", ",", ":", ";", "!",
            "?", "-", "«", "»", "...", "(", ")", "'", "", "{", "}", "—",
            " ", "\n" };

    public static List<String> getPunctuationList() {
        List<String> list = Arrays.asList(punctuationArray);
        return list;
    }

    public static boolean isPunctuation(String s) {
        return Arrays.asList(punctuationArray).contains(s);
    }
}
